// 全局样式入口文件
@use './variables.scss' as *;
@use './reset.scss';
@use './common.scss';
@use './modern.scss';

// TDesign主题定制
:root {
  --td-brand-color: #0052d9;
  --td-brand-color-hover: #266fe8;
  --td-brand-color-focus: #0052d9;
  --td-brand-color-active: #003cab;
  --td-brand-color-disabled: #b3d3ff;
  --td-brand-color-light: #e6f2ff;
  --td-brand-color-light-hover: #cce5ff;
  --td-brand-color-light-active: #99ccff;
}

// 全局布局样式
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--td-text-color-primary);
  background-color: var(--td-bg-color-container);
}

#app {
  height: 100%;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--td-bg-color-container);
}

::-webkit-scrollbar-thumb {
  background: var(--td-bg-color-component-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--td-bg-color-component-active);
}

// 通用工具类
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

// 响应式断点
@media (max-width: 768px) {
  .mobile-hidden { display: none !important; }
}

@media (min-width: 769px) {
  .desktop-hidden { display: none !important; }
}